package com.iss.apartmentmanage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("menu")
public class Menu {
    private String id;
    private String menuName;
    private String menuCode;
    private String parentId;
    private String status;
    private String icon;
    private List<Menu> children;

    public Menu(String id, String menuName, String menuCode, String parentId, String status, String icon) {
        this.id = id;
        this.menuName = menuName;
        this.menuCode = menuCode;
        this.parentId = parentId;
        this.status = status;
        this.icon = icon;
    }
}
